/*
** check_error.c for  in /home/gomes_m//my-project-a-moi/client
** 
** Made by mickael gomes
** Login   <gomes_m@epitech.net>
** 
** Started on  Mon Jul 29 14:28:41 2013 mickael gomes
** Last update Mon Jul 29 16:06:37 2013 mickael gomes
*/

#include		"struct.h"
#include		"prototypes.h"

char			*check_port_validity(char *port)
{
  int			i = 0;

  while (port[i])
    {
      if (port[i] < '0' || port[i] > '9')
	my_putstr(2, "Syntax error : Port\n", 1);
      i++;
    }
  return (port);
}
